package cn.tuling.order.feign;

import cn.tuling.order.po.Order;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "seata-storage-service", path = "/storage")
public interface StorageService {

    @PutMapping("/deduct")
    public Boolean deduct(@RequestBody Order order);
}
